/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk.local;

import com.qihoo.psdk.util.h;
import org.json.JSONObject;

public class a {
    public String a = "";
    public String b = "";
    public String c = "";
    public String d = "";
    public int e = 0;
    public String f = "";
    public int g = 0;
    public String h = "";
    public String i = "";

    public a() {}

    public a(String paramString) {
        a(paramString);
    }

    public void a() {
        h.a("QAppBean", "softId: " + this.a);
        h.a("QAppBean", "softName: " + this.b);
        h.a("QAppBean", "logoUrl: " + this.c);
        h.a("QAppBean", "pname: " + this.d);
        h.a("QAppBean", "versionCode: " + this.e);
        h.a("QAppBean", "versionName: " + this.f);
        h.a("QAppBean", "apkSize: " + this.g);
        h.a("QAppBean", "downloadUrl: " + this.h);
    }

    private void a(String paramString) {
        try {
            JSONObject localJSONObject = new JSONObject(paramString);
            if (!(localJSONObject.isNull("si")))
                this.a = localJSONObject.getString("si");
            if (!(localJSONObject.isNull("sn")))
                this.b = localJSONObject.getString("sn");
            if (!(localJSONObject.isNull("lu")))
                this.c = localJSONObject.getString("lu");
            if (!(localJSONObject.isNull("pn")))
                this.d = localJSONObject.getString("pn");
            if (!(localJSONObject.isNull("vc")))
                this.e = localJSONObject.getInt("vc");
            if (!(localJSONObject.isNull("vn")))
                this.f = localJSONObject.getString("vn");
            if (!(localJSONObject.isNull("as")))
                this.g = localJSONObject.getInt("as");
            if (localJSONObject.isNull("du"))
                return;
            this.h = localJSONObject.getString("du");
        } catch (Exception localException) {
            h.a("QAppBean", localException);
        } catch (Error localError) {
            h.a("QAppBean", localError);
        }
    }
}